package com.qfedu.controller;

import com.qfedu.entity.Admin;
import com.qfedu.entity.ResponseData;
import com.qfedu.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private AdminService adminService;

    @RequestMapping("/login/status")
    public ResponseData<List<Admin>> logIn(Admin admin) {
        return adminService.logIn(admin);
    }

}
